using System;
using System.Collections.Generic;
using System.Text;
using Neuparts.Shipping.Entities;
using Neuparts.Shipping.ServiceInterface.DataContracts;

namespace Neuparts.Shipping.ServiceInterface.Translators
{
    public class InventoryItemTranslator
    {
        public static InventoryItem Translate(InventoryItemMessage from) {
            InventoryItem to=new InventoryItem();

            to.Barcode = from.Barcode;
            to.Name = from.Name;
            to.ReceivedDate = from.ReceivedDate;
            to.Sku = from.Sku;
            to.SupplierId = from.SupplierId;

            return to;

        }
    }
}
